k8s Networking

# testing
nslookup <any>.localdev.me # return loopback

# example of internal address
redis-master.default.svc.cluster.local
  • Example of port-forward
    kubectl port-forward -n weave "$(kubectl get -n weave pod \
    --selector=weave-scope-component=app -o jsonpath='{.items..metadata.name}')" \
    4040